package coml.jiyun.hp.mvpextract.net;

import coml.jiyun.hp.mvpextract.bean.Bean;
import io.reactivex.Flowable;
import io.reactivex.Observable;
import retrofit2.http.GET;

public interface ApiService {

    String sUrl = "https://gank.io/api/";

    @GET("data/%E7%A6%8F%E5%88%A9/10/2")
    Observable<Bean>getData();

    //带背压策略
    //被观察者:Flowable
    //观察者:ResourceSubscriber
    @GET("data/%E7%A6%8F%E5%88%A9/10/2")
    Flowable<Bean> getData2();
}